<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); ?>

<?php
$attributes = array(
    'class' => 'control-label',
);
?>

<div class="span9">
 <?php $causa = $this->session->userdata('causa'); ?>
    <div class="breadcrumb">
        <h4 style="margin: 0px;"><?php echo $causa['caratula'] . ' - ' . $causa['nroExpediente']; ?></h4>
    </div>

    <h2><?php echo $titulo; ?></h2>

    <?php echo get_message(); ?>

    <?php echo form_open(); ?>
    <div class="control-group">
        <?php echo form_label('Carátula', 'nombre', $attributes); ?>
        <div class="controls">
            <?php echo form_input(array('class' => 'span6', 'name' => 'nombre', 'type' => 'text', 'value' => $caratula['nombre'])); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Número de Expediente', 'nroExpediente', $attributes); ?>
        <div class="controls">
            <?php echo form_input(array('class' => 'span6', 'name' => 'nroExpediente', 'type' => 'text', 'value' => $caratula['nroExpediente'])); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Juzgado', 'juzgado', $attributes); ?>
        <div class="controls">
            <?php echo form_input(array('class' => 'span6', 'name' => 'juzgado', 'type' => 'text', 'value' => $caratula['juzgado'])); ?>
        </div>
    </div>
    <div class="control-group">
        <?php echo form_label('Fiscalía', 'fiscalia', $attributes); ?>
        <div class="controls">
            <?php echo form_input(array('class' => 'span6', 'name' => 'fiscalia', 'type' => 'text', 'value' => $caratula['fiscalia'])); ?>
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <?php echo form_input(array('class' => 'span6', 'name' => 'submit', 'type' => 'submit', 'value' => 'Guardar', 'class' => 'btn')); ?>
            <button type="button" onclick="window.location = '<?php echo base_url('causas/caratulas'); ?>';" class="btn">Cancelar</button>
        </div>
    </div>
    <?php echo form_close(); ?>

</div>